package com.guoxin.designpattern.chapter4;

/**
 * @author guoxin
 * @date 2019/9/3
 */
public class ObserverClient {
    public static void main(String[] args) {
        Subject subject = new Subject();
        new BinaryObserver(subject);
        new OctalObserver(subject);

        subject.setState(10);
        subject.setState(22);
        subject.setState(10);
    }
}
